<!--
- @founder   IT柏拉图, https: //weibo.com/itprato
- @author    DedeCMS团队
- @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.)
--->

<html>
<head>
<meta charset="{dede:global.cfg_soft_lang/}" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>修改用户组</title>
<meta name="copyright" content="2007-2021 DedeCMS, 上海卓卓网络科技有限公司 (DesDev, Inc.)" />
<link rel="icon" href="/favicon.ico" />
<!-- CSS FILES -->
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/pkg/uikit/css/uikit.min.css" />
<link rel="stylesheet" type="text/css" href="{dede:global.cfg_assets_dir/}/css/manage.dede.css">
<style type="text/css">
.uk-table td{
padding: 6px 12px;
vertical-align: top;
height: 35px;
}
</style>
</head>
<body>
<!-- 列表头部 -->
<div id="Table_Header_202X2W2X1X292F" class="uk-card uk-card-small uk-card-default" uk-sticky="bottom: #offset">
<div id="Header_1W2T2S2T1V252B" class="uk-card-header">
<div class="uk-grid uk-grid-small uk-text-small">
<span><ul class="uk-breadcrumb"><li><a href="sys_group.php">系统用户组管理</a></li><li><span>修改用户组</span></li></ul></span>
</div>
</div>
</div>
<!-- /列表头部 -->
<!-- 列表主体 -->
<div class="uk-card uk-card-small uk-card-default" style="top:-20px;margin-bottom: 50px;">
<div class="uk-card-body uk-overflow-auto" grid>
<div class="uk-child-width-1-1 uk-padding">
<table width="98%" border="0" cellpadding="1" cellspacing="1" class="uk-table">
<form name='form1' action='sys_group_add.php' method='post'>
<input type='hidden' name='dopost' value='save'>
<!-- 选项 -->
<tr>
<td width="9%" height="30">组名称：</td>
<td width="91%"> <input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>" class='uk-input uk-form-small uk-form-width-large'>
</td>
</tr>
<tr>
<td width="9%" height="30">级别值：</td>
<td width="91%">
<input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>">
<?php echo $groupSet['rank']?>
</td>
</tr>
<?php
$start = 0;
$k = 0;
$gouplists = file(DEDEADMIN.'/inc/grouplist.txt');
foreach($gouplists as $line)
{
$line = trim($line);
if($line=="") continue;
if(preg_match("#^>>#", $line))
{
if($start>0) echo " </td></tr>\r\n";
$start++;
$lhead = "
<tr>
<td height='25' colspan='2'>{$start}、".str_replace('>>','',$line)."</td></tr>
<tr><td height='25' colspan='2'>
";
echo $lhead;
}
else if(preg_match("#^>#", $line))
{
$ls = explode('>',$line);
$tag = $ls[1];
$tagname = str_replace('[br]','<br>',$ls[2]);
if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>";
else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname);
echo " <input name='purviews[]' type='checkbox' class='uk-checkbox' id='purviews$k' value='$tag'".CRank($tag)."> $tagname &nbsp;&nbsp;\r\n";
$k++;
}
}
$start++;
?>
</td>
</tr>
<tr>
<td height='25' colspan='2'><?php echo $start?>、插件权限</td>
</tr>
<tr>
<td height='25' colspan='2'>
<?php
$l = 0;
$dsql->SetQuery('SELECT plusname FROM #@__plus');
$dsql->Execute();
while($row=$dsql->GetObject()){
echo " <input name='purviews[]' type='checkbox' class='uk-checkbox' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname} &nbsp;&nbsp;\r\n";
$k++;
$l++;
if($l % 6 == 0) echo "<br>";
}
?> </td>
</tr>
<!-- /选项 -->
</table>
</div>
</div>
<div class="uk-card-footer " >
<div class="uk-padding-small" >
<button type="submit" class="uk-button uk-button-small uk-button-primary">提交</button>
</div>
</div>
</div>
</form>
<!-- 列表底部 -->
<div class="bar-bottom uk-flex uk-light uk-flex-right">
<div class="uk-button-group" style="margin-left: 50px;">
</div>
<div class="e1e02">Copyright &copy; 2007-2021 <a href='http://www.dedecms.com' target='_blank'><u>DedeCMS</u></a>, 上海卓卓网络科技有限公司 (DesDev, Inc.)</div>
</div>
<!-- 列表底部 -->
<!-- JS FILES -->
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/uikit/js/uikit-icons.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/pkg/jquery/jquery.min.js"></script>
<script src="{dede:global.cfg_assets_dir/}/js/dede.manage.min.js"></script>
<!-- / JS FILES -->
</body>
</html>
